package java6681.lesson06;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * @author Junichiro
 * @description
 * @date 2021-04-10 21:56
 **/

public class Profile6681 {
    public static void main(String[] args) throws IOException {
        Properties properties = new Properties();
        InputStream stream = Profile6681.class.getResourceAsStream("myProFile6681.properties");
        properties.load(stream);
        stream.close();
        System.out.println(properties);
        System.out.println(properties.get("id"));
        System.out.println(properties.get("name"));
        System.out.println(properties.get("sex"));
        System.out.println(properties.get("age"));
    }
}
